﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYAuto.MonitorData.Chitunion.Infrastruct.Verification;

namespace XYAuto.MonitorData.Chitunion.Bll.Provider.Dto.Request
{
    public class ReqCreateMonitorTaskDto
    {

        [Necessary(MtName = "MonitorName")]
        public string MonitorName { get; set; }
        [Necessary(MtName = "MonitorSql")]
        public string MonitorSql { get; set; }

        public int AchieveCount { get; set; }//错误数据大于多少，就通知

        [Necessary(MtName = "DataServceId", IsValidateThanAt = true, ThanMaxValue = 0, Message = "{0}必须大于{1},请输入DataServceId")]
        public int DataServceId { get; set; }
        [Necessary(MtName = "NoticeKey")]
        public string NoticeKey { get; set; }
        [Necessary(MtName = "NoticeToValue")]
        public string NoticeToValue { get; set; }
        [Necessary(MtName = "NoticeDesc")]
        public string NoticeDesc { get; set; }
    }
}
